import java.util.Scanner;

public class PrimeNumbers {
    public static void getNumbers (int limit) {
        int firstruncount = 0;
        System.out.print ("[");
        for (int i = 2; i <= limit; i++) {
            firstruncount++;
            boolean isPrime = true;
            for (int j = 2; j <= Math.sqrt(i); j++) {
                if (i % j == 0) {
                    isPrime = false;
                    break;
                }
            }
            if (isPrime) {
                if (firstruncount == 1) {
                    System.out.print (i);
                } else {
                    System.out.print (", " + i);
                }
            }
        }
        System.out.print ("]");
    }

    public static void main (String[] args) {
        Scanner scanner = new Scanner (System.in);
        System.out.println ("Please, input the number ");
          int limit = scanner.nextInt ();
        getNumbers (limit);
    }
}


